package com.zxc.model;

import java.util.List;

public class Fertilizer {
    public Fertilizer(){
    }
    private List<Page> pageList;
    //肥料表仓库表
    private String id;
    private Float fertilizerNum;
    private Float fertilizerPrice;
    private String fertilizerProducers;
    private String fertilizerProducersPhone;
    private String imageUrl;
    //肥料表
    private String fertilizerId;
    private String fertilizerName;
    private String composition;
    private Float nitrogen;
    private Float phosphorus;
    private Float potassium;
    ////当对象为用户仓库时，新增2个属性：用户的主键，主仓库的主键
    private String userId;
    private String rootId;

    public Fertilizer(List<Page> pageList, String id, Float fertilizerNum, Float fertilizerPrice, String fertilizerProducers, String fertilizerProducersPhone, String imageUrl, String fertilizerId, String fertilizerName, String composition, Float nitrogen, Float phosphorus, Float potassium, String userId, String rootId) {
        this.pageList = pageList;
        this.id = id;
        this.fertilizerNum = fertilizerNum;
        this.fertilizerPrice = fertilizerPrice;
        this.fertilizerProducers = fertilizerProducers;
        this.fertilizerProducersPhone = fertilizerProducersPhone;
        this.imageUrl = imageUrl;
        this.fertilizerId = fertilizerId;
        this.fertilizerName = fertilizerName;
        this.composition = composition;
        this.nitrogen = nitrogen;
        this.phosphorus = phosphorus;
        this.potassium = potassium;
        this.userId = userId;
        this.rootId = rootId;
    }

    public List<Page> getPageList() {
        return pageList;
    }

    public void setPageList(List<Page> pageList) {
        this.pageList = pageList;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Float getFertilizerNum() {
        return fertilizerNum;
    }

    public void setFertilizerNum(Float fertilizerNum) {
        this.fertilizerNum = fertilizerNum;
    }

    public Float getFertilizerPrice() {
        return fertilizerPrice;
    }

    public void setFertilizerPrice(Float fertilizerPrice) {
        this.fertilizerPrice = fertilizerPrice;
    }

    public String getFertilizerProducers() {
        return fertilizerProducers;
    }

    public void setFertilizerProducers(String fertilizerProducers) {
        this.fertilizerProducers = fertilizerProducers;
    }

    public String getFertilizerProducersPhone() {
        return fertilizerProducersPhone;
    }

    public void setFertilizerProducersPhone(String fertilizerProducersPhone) {
        this.fertilizerProducersPhone = fertilizerProducersPhone;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getFertilizerId() {
        return fertilizerId;
    }

    public void setFertilizerId(String fertilizerId) {
        this.fertilizerId = fertilizerId;
    }

    public String getFertilizerName() {
        return fertilizerName;
    }

    public void setFertilizerName(String fertilizerName) {
        this.fertilizerName = fertilizerName;
    }

    public String getComposition() {
        return composition;
    }

    public void setComposition(String composition) {
        this.composition = composition;
    }

    public Float getNitrogen() {
        return nitrogen;
    }

    public void setNitrogen(Float nitrogen) {
        this.nitrogen = nitrogen;
    }

    public Float getPhosphorus() {
        return phosphorus;
    }

    public void setPhosphorus(Float phosphorus) {
        this.phosphorus = phosphorus;
    }

    public Float getPotassium() {
        return potassium;
    }

    public void setPotassium(Float potassium) {
        this.potassium = potassium;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getRootId() {
        return rootId;
    }

    public void setRootId(String rootId) {
        this.rootId = rootId;
    }
}
